#ifndef __PUBLIC_H__
#define __PUBLIC_H__
#include<functional>
#include<unordered_map>
#include"mysqlfactory.h"
#include"oraclefactory.h"
#include"sqlserverfactory.h"
using namespace std;
using CreateHandler = std::function<DBFactory* (void)>;
std::unordered_map<std::string, CreateHandler> s_h_map =
{
    {"MySQL",&MySQLFactory::getInstance},
    {"Oracle",&OracleFactory::getInstance},
    {"SQLServer",&SQLServerFactory::getInstance}
};
#endif